import http from '../util/http.js'

const createUrl = '/cart/create'
const queryByUidUrl = '/cart/queryByUid'
const queryByIdUrl = '/cart/queryById'

const create = (data) => {
    return http.post(createUrl, data)
}
const queryById = (data) => {
    return http.get(queryByIdUrl, data)
}
// const modify = (data) =>{
//     return http.put(modifyUrl,data)
// }
const queryByUid =(data) =>{
    return http.get(queryByUidUrl,data)
}

export default {
    create,queryById,queryByUid
}